#massage = "Enter a number:"
#massage_0 =" "
#while massage_0 != "quit":
#    massage_0 = input(massage)
#    print(massage_0)
#    if massage_0 == "quit":
#        break

number = 0
while number < 10:
    number += 1
    if number % 3 == 0:
        continue
    print(number)